<?php
namespace Admin\Model;
use Think\Model\MongoModel;
Class ArticleModel extends MongoModel {
	Protected $pk = 'id';
	Protected $_idType = self::TYPE_OBJECT;
	
	public function get_book_list()
	{
		return M('book')->select();
	}
	
	public function add_book($data)
	{
		return M('book2')->add($data);
	}
}